//
//  LYNetTargetType.swift
//  TodayNews
//
//  Created by ZhangBo on 2019/6/17.
//  Copyright © 2019 ZhangBo. All rights reserved.
//

import Foundation
import Moya
import Alamofire


public protocol LYNetTargetType {

    /// The target's base `URL`.
    var baseURL: String { get }

    /// The path to be appended to `baseURL` to form the full `URL`.
    var path: String { get }

    /// baseURL + path
    var urlStr: String { get }

    /// The HTTP method used in the request.
    var method: HTTPMethod { get }

    /// Cache dict to disk
    var needCache: Bool { get }

    /// The headers to be used in the request.
    var headers: [String: String]? { get }
}
